package com.sf.fy.uav.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 跑腿订单
 * </p>
 *
 * @author LTQ
 * @since 2024-09-12
 */
@TableName("errand_order")
@ApiModel(value = "ErrandOrder对象", description = "跑腿订单")
public class ErrandOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("下单时间")
    private Date createTime;

    private Date updateTime;

    @ApiModelProperty("同城跑腿订单号")
    @TableField( updateStrategy = FieldStrategy.IGNORED)
    private String errandOrderSn;

    @ApiModelProperty("丰翼订单号")
    private String orderSn;

    @ApiModelProperty("配送距离")
    private Double deliveryDistance;

    @ApiModelProperty("结算方式")
    private Byte paymentMethod;

    @ApiModelProperty("配送费总额")
    private BigDecimal totalPrice;

    @ApiModelProperty("总支付金额")
    private BigDecimal totalPaymentAmount;

    @ApiModelProperty("实际支付金额")
    private BigDecimal pricePaid;

    @ApiModelProperty("优惠券总金额")
    private BigDecimal totalCouponAmount;

    @ApiModelProperty("取件码")
    private String pickUpCode;

    @ApiModelProperty("收件码")
    private String receiptCode;

    @ApiModelProperty("骑手名称")
    private String riderName;

    @ApiModelProperty("骑手电话")
    private String riderPhone;

    @ApiModelProperty("妥投照片url")
    private String submitPhotoUrl;

    @ApiModelProperty("状态")
    private Byte status;

    @ApiModelProperty("骑手纬度")
    private Double latitude;

    @ApiModelProperty("骑手经度")
    private Double longitude;

    @ApiModelProperty("0揽收，1派件")
    private Byte type;


    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getErrandOrderSn() {
        return errandOrderSn;
    }

    public void setErrandOrderSn(String errandOrderSn) {
        this.errandOrderSn = errandOrderSn;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Double getDeliveryDistance() {
        return deliveryDistance;
    }

    public void setDeliveryDistance(Double deliveryDistance) {
        this.deliveryDistance = deliveryDistance;
    }

    public Byte getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(Byte paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public BigDecimal getTotalPaymentAmount() {
        return totalPaymentAmount;
    }

    public void setTotalPaymentAmount(BigDecimal totalPaymentAmount) {
        this.totalPaymentAmount = totalPaymentAmount;
    }

    public BigDecimal getPricePaid() {
        return pricePaid;
    }

    public void setPricePaid(BigDecimal pricePaid) {
        this.pricePaid = pricePaid;
    }

    public BigDecimal getTotalCouponAmount() {
        return totalCouponAmount;
    }

    public void setTotalCouponAmount(BigDecimal totalCouponAmount) {
        this.totalCouponAmount = totalCouponAmount;
    }

    public String getPickUpCode() {
        return pickUpCode;
    }

    public void setPickUpCode(String pickUpCode) {
        this.pickUpCode = pickUpCode;
    }

    public String getReceiptCode() {
        return receiptCode;
    }

    public void setReceiptCode(String receiptCode) {
        this.receiptCode = receiptCode;
    }

    public String getRiderName() {
        return riderName;
    }

    public void setRiderName(String riderName) {
        this.riderName = riderName;
    }

    public String getRiderPhone() {
        return riderPhone;
    }

    public void setRiderPhone(String riderPhone) {
        this.riderPhone = riderPhone;
    }

    public String getSubmitPhotoUrl() {
        return submitPhotoUrl;
    }

    public void setSubmitPhotoUrl(String submitPhotoUrl) {
        this.submitPhotoUrl = submitPhotoUrl;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ErrandOrder{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", errandOrderSn='" + errandOrderSn + '\'' +
                ", orderSn='" + orderSn + '\'' +
                ", deliveryDistance=" + deliveryDistance +
                ", paymentMethod=" + paymentMethod +
                ", totalPaymentAmount=" + totalPaymentAmount +
                ", pricePaid=" + pricePaid +
                ", totalCouponAmount=" + totalCouponAmount +
                ", pickUpCode='" + pickUpCode + '\'' +
                ", receiptCode='" + receiptCode + '\'' +
                ", riderName='" + riderName + '\'' +
                ", riderPhone='" + riderPhone + '\'' +
                ", submitPhotoUrl='" + submitPhotoUrl + '\'' +
                ", status=" + status +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", type=" + type +
                '}';
    }
}
